package com.example.onlinemusic.mapper;

import com.example.onlinemusic.model.Music;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MusicMapper {
    int insertMusic(String title, String singer, String time, String url, int userId); // 插入音乐

    Music selectTitleAndSinger(String title, String singer);

    int deleteMusicById(int musicId);

    Music selectByMusicId(int musicId);

    List<Music> findAllMusic();

    List<Music> findMusicByName(String title);
}
